package com.wcpdoc.exam.core.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.wcpdoc.core.dao.BaseDao;
import com.wcpdoc.core.service.impl.BaseServiceImp;
import com.wcpdoc.exam.core.dao.QuestionAnswerDao;
import com.wcpdoc.exam.core.entity.QuestionAnswer;
import com.wcpdoc.exam.core.service.QuestionAnswerService;

/**
 * 试题服务层实现
 * 
 * v1.0 chenyun 2021-07-20 18:14:32
 */
@Service
public class QuestionAnswerServiceImpl extends BaseServiceImp<QuestionAnswer> implements QuestionAnswerService {
	@Resource
	private QuestionAnswerDao questionAnswerDao;

	@Override
	@Resource(name = "questionAnswerDaoImpl")
	public void setDao(BaseDao<QuestionAnswer> dao) {
		super.dao = dao;
	}

	@Override
	public List<QuestionAnswer> getList(Integer questionId) {
		return questionAnswerDao.getList(questionId);
	}

	@Override
	public void updateAndDel(Integer id) {
		questionAnswerDao.del(id);
	}

}